<!DOCTYPE html>
<?php

require_once ('conn.php');
require_once ('top.php');
if($_SESSION['role']==2){
     Header("Location:supply_index.php"); 
    }elseif($_SESSION['role']==3){
     Header("Location:dotlistMaster.php"); 
   }
?>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>优易购</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <script src="js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript">
function showTime(){
    nowtime=new Date();
    year=nowtime.getFullYear();
    month=nowtime.getMonth()+1;
    date=nowtime.getDate();
    document.getElementById("mytime").innerText=year+"年"+month+"月"+date+" "+nowtime.toLocaleTimeString();
}

setInterval("showTime()");

</script>
</head>
<body>
    <div class="top">
        <span>补货记录</span>
        <div class="tright"><span class="outlogin">退出登陆</span></div>
    </div>
    <div class="time" id="mytime"></div>
    
    
    
     <?php

    $result=mysql_query("select * from ci_contact where disable=0 and isDelete=0 and staffid=".$_SESSION['userid']); 
    $i=0;
    $Total;//总库存
    $Surplus;//当前库存
    $num;//交易额
    $but;//是否显示补货按钮
    
    while($row=mysql_fetch_array($result))
        
    { 
    ?>
    
    <a style="text-decoration:none"  href="History_info.php?contactNumber=<?=$row['number']?>">
    <div class="list" id="list<?=$row['id']?>">
        <p>网点名称：<?=$row['name']?></p><div class="addno" >点击查看</div>
    </div>
    </a>
    <?php  $i++; }?>
    
    
    <div style=" width:100%;height:100px; float:left;"></div>
    <div class="foot">
        <a href="index.php">
        <div>
        <img src="img/f11.png" alt="">
        <p>首页数据</p>
        </div>
        </a>
        <a href="market.php">
        <div>
        <img src="img/f22.png" alt="">
        <p>全部网点</p>
        </div>
        </a>
        
        
        <div  class="footon">
        <img src="img/f3.png" alt="">
        <p>补货记录</p>
        </div>
       
    </div>
</body>

<script src="js/outlogin.js"></script>
</html>